from django.http import HttpResponse

def hello_views(request):
    return HttpResponse("Hello World!")


def test_views1(request,param):
    print("param",param)
    print("type(param)",type(param))
    return HttpResponse("Hello World %s!" % param)


def test_views2(request,name,age):
    print("type(name)",type(name))
    print("type(age)",type(age))
    return HttpResponse("Hello  %s,%d!" % (name,age))

def wahaha_views1(request):
    return HttpResponse("wahaha_views1")

def wahaha_views2(request,age):
    print('type(age)',type(age))
    return HttpResponse("今年%r岁" % age)

def wahaha_views3(request,x,opp,y):
    re = int(x) * int(y)
    return HttpResponse("两数相乘为：%r " % re)

def wahaha_views4(request,x,opp,y):
    re = int(x) * int(y)
    return HttpResponse("x*y=%r" % re)